package board;

import pieces.Horse;



public class Board {

	private static int width;
	private static int height;
	// private static ArrayList<ArrayList<Integer>> board;
	private static Horse[][] board;

	public Board(int width, int height) {
		this.width = width;
		this.height = height;
		// int[][] m = {{ 1, 0, 1 }, { 1, 0, 0 } };

		board = new Horse[getHeight()][getWidth()];
		//startBoard();
	}

//	private static void startBoard() {
//
//		for (int i = 0; i < getHeight(); i++) {
//			board[i] = new int[getWidth()];
//
//		}
//
//	}

	@Override
	public String toString() {
		String stringToReturn = "";

		for (int i = 0; i < getHeight(); i++) {
		
			for (int j = 0; j < getWidth(); j++) {
				
				stringToReturn += board[i][j] + " ";
			}
			stringToReturn += "\n";
		}

		return stringToReturn;
	}

	public void setInPosition(int i, int j, Horse horse) {
		board[i][j] = horse;
	}
	
	public Horse getInPosition(int i, int j){
		return board[i][j];
	}

	public static int getWidth() {
		return width;
	}

	public static int getHeight() {
		return height;
	}

}
